package com.ls.fw.frame.data.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.ls.fw.frame.data.dao.DataSchemaDao;
import com.ls.fw.frame.data.model.DataSchema;
import com.ls.fw.frame.data.model.example.DataSchemaExample;
import com.ls.fw.frame.data.vo.DataSchemaVo;
import com.ls.fw.frame.data.service.DataSchemaService;
import com.ls.fw.data.rdb.impl.dao.EntityDao;
import com.ls.fw.data.rdb.impl.service.EntityServiceAdapter;


/**
 * 
 * @author ls
 * 2016年06月10日 16时40分37秒
 */
@Service("dataSchemaService")   
public class DataSchemaServiceImpl extends EntityServiceAdapter<DataSchema,DataSchemaVo,java.lang.Long>  implements DataSchemaService{
	
    private DataSchemaDao dataSchemaDao = null;
   
    @Resource
    public void setDataSchemaDao(DataSchemaDao dataSchemaDao) {
		this.dataSchemaDao = dataSchemaDao;
    }
 
	
	@SuppressWarnings("unchecked")
	@Override
	public <D extends EntityDao<DataSchema, DataSchemaVo,java.lang.Long>> D getEntityDao(){
		return (D) dataSchemaDao;
	}
	
	@Override
	public List<DataSchema> selectByExample(DataSchemaExample example) {
		return this.dataSchemaDao.getMapper().selectByExample(example);
	}


	@Override
	public DataSchema selectOneByExample(DataSchemaExample example) {
		return this.dataSchemaDao.getMapper().selectOneByExample(example);
	}

	@Override
	public DataSchema selectOne(DataSchema record) {
		return this.dataSchemaDao.getMapper().selectOne(record);
	}


	@Override
	public List<DataSchema> select(DataSchema record) {
		return this.dataSchemaDao.getMapper().select(record);
	}


	@Override
	public int deleteByExample(DataSchemaExample example) {
		return this.dataSchemaDao.getMapper().deleteByExample(example);
	}


	@Override
	public int updateByExampleSelective(DataSchema record,
			DataSchemaExample example) {
		return this.dataSchemaDao.getMapper().updateByExampleSelective(record, example);
	}
}
